import java.io.FileWriter;
import java.io.IOException;

public class stringsrtream {
    public static void main(String[] args) {

        try ( FileWriter dis=new FileWriter("C:\\1.1\\3.txt");){


            dis.write("登鹳雀楼\r\n王之涣\r\n白日依山尽，\r\n黄河入海流。\r\n欲穷千里目，\r\n更上一层楼");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
